package com.xdb.sqlparser.dialect.oracle.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.oracle.ast.OracleSQLObjectImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleSelectHierachicalQueryClause extends OracleSQLObjectImpl {

	private SQLExpr startWith;
	private SQLExpr connectBy;
	private boolean prior = false;
	private boolean noCycle = false;

	public OracleSelectHierachicalQueryClause() {

	}

	public boolean isPrior() {
		return prior;
	}

	public void setPrior(boolean prior) {
		this.prior = prior;
	}

	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, this.startWith);
			acceptChild(visitor, this.connectBy);
		}

		visitor.endVisit(this);
	}

	public SQLExpr getStartWith() {
		return this.startWith;
	}

	public void setStartWith(SQLExpr startWith) {
		this.startWith = startWith;
	}

	public SQLExpr getConnectBy() {
		return this.connectBy;
	}

	public void setConnectBy(SQLExpr connectBy) {
		this.connectBy = connectBy;
	}

	public boolean isNoCycle() {
		return this.noCycle;
	}

	public void setNoCycle(boolean noCycle) {
		this.noCycle = noCycle;
	}
}
